package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.PeisongPersonAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.peisong.mypeisong.peisongperson.IPeisongPersonPresenter;
import com.kelvin.paopao.module.peisong.mypeisong.peisongperson.PeisongPersonActivity;
import com.kelvin.paopao.module.peisong.mypeisong.peisongperson.PeisongPersonPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class PeisongPersonModule {
    private PeisongPersonActivity mView;

    public PeisongPersonModule(PeisongPersonActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IPeisongPersonPresenter providePresenter() {
        return new PeisongPersonPresenter(mView);
    }

    @PerActivity
    @Provides
    public PeisongPersonAdapter provideAdapter() {
        return new PeisongPersonAdapter(mView);
    }
}
